# 编写一个函数power()模拟内建函数pow(),即power(x,y)为计算并返回x的y次幂的值


def power(x, y):
    y = int(y)
    x = int(x)
    step = x
    for i in range(y - 1):
        x *= step
    return x


if __name__ == "__main__":
    print(power(2, 3))